package com.aiyi.education.admin.service;


import com.aiyi.education.entity.admin.KsAdmin;
import com.aiyi.education.entity.admin.KsAdminRole;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface IKsAdminRoleService extends IService<KsAdminRole> {

    int deleteByPrimaryKey(Integer roleId);

    int insertSelective(KsAdminRole record);

    KsAdminRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(KsAdminRole record);

    /**
     * 新增管理员类型
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> addKsAdminRole(Map<String, Object> map, Object userObject, KsAdminRole record);

    /**
     * 更新管理员类型
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> updateKsAdminRole(Map<String, Object> map, Object userObject, KsAdminRole record);

    /**
     * 删除管理员类型
     * @param map
     * @param userObject
     * @param record
     * @return
     */
    Map<String, Object> deleteKsAdminRole(Map<String, Object> map, Object userObject, KsAdminRole record);

    /**
     * 根据条件查询管理员类型
     * @param map
     * @param userObject
     * @param pageModel
     * @param requestJson
     * @return
     */
    Map<String, Object> searchKsAdminRole(Map<String, Object> map, Object userObject, Page<KsAdminRole> pageModel, JSONObject requestJson);
}
